package com.training1.core.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;


public class SystemParamDto {
	public static final String A_ORDER_CARSH_KEY = "FX_A_YJ";
	public static final String A_LEVELONE_KEY="FX_A_1";
	public static final String A_LEVELTWO_KEY = "FX_A_2";
	public static final String A_LEVELTHREE_KEY = "FX_A_3";
	public static final String A_COMMANDCASH_KEY = "FX_A_TJ";
	public static final String A_WELLHEADCOUNT_KEY = "FX_A_JK";
	public static final String B_ORDERCASH_KEY = "FX_B_YJ";
	public static final String B_LEVELONE_CASH_KEY ="FX_B_1" ;
	public static final String B_LEVELTWO_CASH_KEY = "FX_B_2";
	public static final String B_LEVELTHREE_CASH_KEY = "FX_B_3";
	public static final String B_WELLHEADCOUNT_KEY = "FX_B_JK";
	public static final String CLIENT_DATE = "CLIENT_DATE"; 
	public static final String FX_KAIDAN_TJ_KEY = "FX_KAIDAN_TJ"; 
	
	

	
	
	
	@NotNull(message="{module.systemparamdto.aOrderCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.aOrderCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.aOrderCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.aOrderCash.length.error}")
	private String aOrderCash;
	
	private String aOrderCashKey;
	@NotNull(message="{module.systemparamdto.aLevelOneCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.aLevelOneCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.aLevelOneCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.aLevelOneCash.length.error}")
	private String aLevelOneCash;
	@NotNull(message="{module.systemparamdto.aLevelTwoCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.aLevelTwoCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.aLevelTwoCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.aLevelTwoCash.length.error}")
	private String aLevelTwoCash;
	@NotNull(message="{module.systemparamdto.aLevelThreeCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.aLevelThreeCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.aLevelThreeCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.aLevelThreeCash.length.error}")
	private String aLevelThreeCash;
	private String aLevelOneKey;
	private String aLevelTwoKey;
	private String aLevelThreeKey;
	
	@NotNull(message="{module.systemparamdto.aCommandCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.aCommandCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.aCommandCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.aCommandCash.length.error}")
	private String aCommandCash;
	private String aCommandCashKey;
	@NotNull(message="{module.systemparamdto.aWellheadCount.notnull}")
	//@Range(min=1,message="{module.systemparamdto.aWellheadCount.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.aWellheadCount.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.aWellheadCount.length.error}")
	private String aWellheadCount;
	private String aWellheadCountKey;
	
	@NotNull(message="{module.systemparamdto.bOrderCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.bOrderCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.bOrderCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.bOrderCash.length.error}")
	private String bOrderCash;
	private String bOrderCashKey;
	@NotNull(message="{module.systemparamdto.bLevelOneCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.bLevelOneCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.bLevelOneCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.bLevelOneCash.length.error}")
	private String bLevelOneCash;
	private String bLevelOneCashKey;
	@NotNull(message="{module.systemparamdto.bLevelTwoCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.bLevelTwoCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.bLevelTwoCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.bLevelTwoCash.length.error}")
	private String bLevelTwoCash;
	private String bLevelTwoCashKey;
	@NotNull(message="{module.systemparamdto.bLevelThreeCash.notnull}")
	//@Range(min=1,message="{module.systemparamdto.bLevelThreeCash.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.bLevelThreeCash.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.bLevelThreeCash.length.error}")
	private String bLevelThreeCash;
	
	private String bLevelThreeCashKey;
	@NotNull(message="{module.systemparamdto.bWellheadCount.notnull}")
	//@Min(value=1,message="{module.systemparamdto.bWellheadCount.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.bWellheadCount.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.bWellheadCount.length.error}")
	private String bWellheadCount;
	private String bWellheadCountKey;
	private String clientDate;
	@NotNull(message="{module.systemparam.bRecommend.notnull}")
	@Pattern(regexp="^(([1-9]\\d{0,9})|0)(\\.\\d{1,2})?$",message="{module.systemparam.bRecommend.error}")
	@Length(min=1, max=20,message="{module.systemparam.bRecommend.length.error}")
	private String bRecommend;
	private String bRecommendKey;
	public SystemParamDto() {
		this.aOrderCashKey = A_ORDER_CARSH_KEY;
		this.aLevelOneKey = A_LEVELONE_KEY;
		this.aLevelTwoKey = A_LEVELTWO_KEY;
		this.aLevelThreeKey = A_LEVELTHREE_KEY;
		this.aCommandCashKey = A_COMMANDCASH_KEY;
		this.aWellheadCountKey = A_WELLHEADCOUNT_KEY;
		this.bOrderCashKey = B_ORDERCASH_KEY;
		this.bLevelOneCashKey = B_LEVELONE_CASH_KEY;
		this.bLevelTwoCashKey = B_LEVELTWO_CASH_KEY;
		this.bLevelThreeCashKey = B_LEVELTHREE_CASH_KEY;
		this.bWellheadCountKey = B_WELLHEADCOUNT_KEY;
		this.clientDate = CLIENT_DATE;
		this.bRecommendKey = FX_KAIDAN_TJ_KEY;
	}

	public String getaOrderCash() {
		return aOrderCash;
	}

	public void setaOrderCash(String aOrderCash) {
		this.aOrderCash = aOrderCash;
	}

	public String getaOrderCashKey() {
		if(aOrderCashKey == null) {
			return A_ORDER_CARSH_KEY;
		}
		return aOrderCashKey;
	}

	public void setaOrderCashKey(String aOrderCashKey) {
		this.aOrderCashKey = aOrderCashKey;
	}

	public String getaLevelOneCash() {
		return aLevelOneCash;
	}

	public void setaLevelOneCash(String aLevelOneCash) {
		this.aLevelOneCash = aLevelOneCash;
	}

	public String getaLevelTwoCash() {
		return aLevelTwoCash;
	}

	public void setaLevelTwoCash(String aLevelTwoCash) {
		this.aLevelTwoCash = aLevelTwoCash;
	}

	public String getaLevelThreeCash() {
		return aLevelThreeCash;
	}

	public void setaLevelThreeCash(String aLevelThreeCash) {
		this.aLevelThreeCash = aLevelThreeCash;
	}

	public String getaLevelOneKey() {
		if(aLevelOneKey == null) {
			return A_LEVELONE_KEY;
		}
		return aLevelOneKey;
	}

	public void setaLevelOneKey(String aLevelOneKey) {
		this.aLevelOneKey = aLevelOneKey;
	}

	public String getaLevelTwoKey() {
		if(aLevelTwoKey == null) {
			return A_LEVELTWO_KEY;			
		}
		return aLevelTwoKey;
	}

	public void setaLevelTwoKey(String aLevelTwoKey) {
		this.aLevelTwoKey = aLevelTwoKey;
	}

	public String getaLevelThreeKey() {
		if(aLevelThreeKey == null) {
			return A_LEVELTHREE_KEY;
		}
		return aLevelThreeKey;
	}

	public void setaLevelThreeKey(String aLevelThreeKey) {
		this.aLevelThreeKey = aLevelThreeKey;
	}

	public String getaCommandCash() {
		return aCommandCash;
	}

	public void setaCommandCash(String aCommandCash) {
		this.aCommandCash = aCommandCash;
	}

	public String getaWellheadCount() {
		return aWellheadCount;
	}

	public void setaWellheadCount(String aWellheadCount) {
		this.aWellheadCount = aWellheadCount;
	}

	public String getbOrderCash() {
		return bOrderCash;
	}

	public void setbOrderCash(String bOrderCash) {
		this.bOrderCash = bOrderCash;
	}

	public String getbLevelOneCash() {
		return bLevelOneCash;
	}

	public void setbLevelOneCash(String bLevelOneCash) {
		this.bLevelOneCash = bLevelOneCash;
	}

	public String getbLevelTwoCash() {
		return bLevelTwoCash;
	}

	public void setbLevelTwoCash(String bLevelTwoCash) {
		this.bLevelTwoCash = bLevelTwoCash;
	}

	public String getbLevelThreeCash() {
		return bLevelThreeCash;
	}

	public void setbLevelThreeCash(String bLevelThreeCash) {
		this.bLevelThreeCash = bLevelThreeCash;
	}

	public String getbWellheadCount() {
		return bWellheadCount;
	}

	public void setbWellheadCount(String bWellheadCount) {
		this.bWellheadCount = bWellheadCount;
	}

	public String getaCommandCashKey() {
		if(aCommandCashKey == null) {
			return A_COMMANDCASH_KEY;
		}
		return aCommandCashKey;
	}

	public void setaCommandCashKey(String aCommandCashKey) {
		this.aCommandCashKey = aCommandCashKey;
	}

	public String getaWellheadCountKey() {
		if(aWellheadCountKey == null) {
			return A_WELLHEADCOUNT_KEY;
		}
		return aWellheadCountKey;
	}

	public void setaWellheadCountKey(String aWellheadCountKey) {
		this.aWellheadCountKey = aWellheadCountKey;
	}

	public String getbOrderCashKey() {
 		if(bOrderCashKey == null){
 			return B_ORDERCASH_KEY;
 		}
		return bOrderCashKey;
	}

	public void setbOrderCashKey(String bOrderCashKey) {
		this.bOrderCashKey = bOrderCashKey;
	}

	public String getbLevelOneCashKey() {
		if(bLevelOneCashKey == null){
			return B_LEVELONE_CASH_KEY;
		}
		return bLevelOneCashKey;
	}

	public void setbLevelOneCashKey(String bLevelOneCashKey) {
		this.bLevelOneCashKey = bLevelOneCashKey;
	}

	public String getbLevelTwoCashKey() {
		if(bLevelTwoCashKey == null) {
			return B_LEVELTWO_CASH_KEY;
		}
		return bLevelTwoCashKey;
	}

	public void setbLevelTwoCashKey(String bLevelTwoCashKey) {
		this.bLevelTwoCashKey = bLevelTwoCashKey;
	}

	public String getbLevelThreeCashKey() {
		if(bLevelThreeCashKey == null){
			return B_LEVELTHREE_CASH_KEY;
		}
		return bLevelThreeCashKey;
	}

	public void setbLevelThreeCashKey(String bLevelThreeCashKey) {
		this.bLevelThreeCashKey = bLevelThreeCashKey;
	}

	public String getbWellheadCountKey() {
		if(bWellheadCountKey == null){
			return B_WELLHEADCOUNT_KEY;
		}
		return bWellheadCountKey;
	}

	public void setbWellheadCountKey(String bWellheadCountKey) {
		this.bWellheadCountKey = bWellheadCountKey;
	}

	public String getClientDate() {
		if(clientDate == null){
			return CLIENT_DATE;
		}
		return clientDate;
	}

	public void setClientDate(String clientDate) {
		this.clientDate = clientDate;
	}

	public String getbRecommend() {
		return bRecommend;
	}

	public void setbRecommend(String bRecommend) {
		this.bRecommend = bRecommend;
	}

	public String getbRecommendKey() {
		if(bRecommendKey == null){
			return FX_KAIDAN_TJ_KEY;
		}
		return bRecommendKey;
	}

	public void setbRecommendKey(String bRecommendKey) {
		this.bRecommendKey = bRecommendKey;
	}
	
	

}
